package com.dv.driverless.domain;

import com.dv.common.annotation.Excel;
import com.dv.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 库位信息对象 warehouse_location
 *
 * @author ruoyi
 * @date 2023-04-10
 */
public class WarehouseLocation extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 序号
     */
    private Long id;

    /**
     * 库位编码
     */
    @Excel(name = "库位编码")
    private String code;

    /**
     * 库区id
     */
    @Excel(name = "库区id")
    private Long areaId;

    /**
     * 该库位堆放的钢卷id
     */
    @Excel(name = "钢卷id")
    private Long steelCoilId;

    /**
     * 位置坐标X
     */
    @Excel(name = "位置坐标X")
    private Integer x;

    /**
     * 位置坐标Y
     */
    @Excel(name = "位置坐标Y")
    private Integer y;

    /**
     * 位置坐标z
     */
    @Excel(name = "位置坐标z")
    private Integer z;

    /**
     * 所在行
     */
    @Excel(name = "所在行")
    private Integer locatedRow;

    /**
     * 所在列
     */
    @Excel(name = "所在列")
    private Integer locatedColumn;

    /**
     * 所在层
     */
    @Excel(name = "所在层")
    private Integer locatedFloor;

    /**
     * 状态【0:空闲 ,1:已占用,2:已禁用,3:已报废】
     */
    @Excel(name = "状态")
    private Integer status;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public void setAreaId(Long areaId) {
        this.areaId = areaId;
    }

    public Long getAreaId() {
        return areaId;
    }

    public void setSteelCoilId(Long steelCoilId) {
        this.steelCoilId = steelCoilId;
    }

    public Long getSteelCoilId() {
        return steelCoilId;
    }

    public void setX(Integer x) {
        this.x = x;
    }

    public Integer getX() {
        return x;
    }

    public void setY(Integer y) {
        this.y = y;
    }

    public Integer getY() {
        return y;
    }

    public void setZ(Integer z) {
        this.z = z;
    }

    public Integer getZ() {
        return z;
    }

    public void setLocatedRow(Integer locatedRow) {
        this.locatedRow = locatedRow;
    }

    public Integer getLocatedRow() {
        return locatedRow;
    }

    public void setLocatedColumn(Integer locatedColumn) {
        this.locatedColumn = locatedColumn;
    }

    public Integer getLocatedColumn() {
        return locatedColumn;
    }

    public void setLocatedFloor(Integer locatedFloor) {
        this.locatedFloor = locatedFloor;
    }

    public Integer getLocatedFloor() {
        return locatedFloor;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("code", getCode())
                .append("areaId", getAreaId())
                .append("steelCoilId", getSteelCoilId())
                .append("x", getX())
                .append("y", getY())
                .append("z", getZ())
                .append("locatedRow", getLocatedRow())
                .append("locatedColumn", getLocatedColumn())
                .append("locatedFloor", getLocatedFloor())
                .append("status", getStatus())
                .toString();
    }
}
